home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / gfx / x11 / x3270_3_2_16.lha / amiga_src / CmeP.h < prev    next >
C/C++ Source or Header  |  2007-03-01  |  4KB  |  110 lines

  1. /*
  2.  * (from) $XConsortium: SmeP.h,v 1.4 89/12/11 15:20:22 kit Exp $
  3.  *
  4.  * Modifications Copyright 1995, 1999 by Paul Mattes.
  5.  *  Permission to use, copy, modify, and distribute this software and its
  6.  *  documentation for any purpose and without fee is hereby granted,
  7.  *  provided that the above copyright notice appear in all copies and that
  8.  *  both that copyright notice and this permission notice appear in
  9.  *  supporting documentation.
  10.  *
  11.  * Copyright 1989 Massachusetts Institute of Technology
  12.  *
  13.  * Permission to use, copy, modify, distribute, and sell this software and its
  14.  * documentation for any purpose is hereby granted without fee, provided that
  15.  * the above copyright notice appear in all copies and that both that
  16.  * copyright notice and this permission notice appear in supporting
  17.  * documentation, and that the name of M.I.T. not be used in advertising or
  18.  * publicity pertaining to distribution of the software without specific,
  19.  * written prior permission.  M.I.T. makes no representations about the
  20.  * suitability of this software for any purpose.  It is provided "as is"
  21.  * without express or implied warranty.
  22.  *
  23.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  24.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  25.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  26.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  27.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  28.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  29.  */
  30.  
  31. /*
  32.  * CmeP.h - Private Header file for Cme object.
  33.  * (from) SmeP.h - Private Header file for Sme object.
  34.  *
  35.  * This is the private header file for the Athena Cme object.
  36.  * This object is intended to be used with the complex menu widget.  
  37.  *
  38.  * Date:    April 3, 1989
  39.  *
  40.  * By:      Chris D. Peterson
  41.  *          MIT X Consortium 
  42.  *          kit@expo.lcs.mit.edu
  43.  */
  44.  
  45. #ifndef _XawCmeP_h
  46. #define _XawCmeP_h
  47.  
  48. /***********************************************************************
  49.  *
  50.  * Cme Widget Private Data
  51.  *
  52.  ***********************************************************************/
  53.  
  54. #include <X11/RectObjP.h>
  55. #include "Cme.h"
  56.  
  57. /************************************************************
  58.  *
  59.  * New fields for the Cme widget class record.
  60.  *
  61.  ************************************************************/
  62.  
  63. typedef struct _CmeClassPart {
  64.   void (*highlight)();
  65.   void (*unhighlight)();
  66.   void (*notify)();    
  67.   XtPointer extension;
  68. } CmeClassPart;
  69.  
  70. /* Full class record declaration */
  71. typedef struct _CmeClassRec {
  72.     RectObjClassPart    rect_class;
  73.     CmeClassPart    cme_class;
  74. } CmeClassRec;
  75.  
  76. extern CmeClassRec cmeClassRec;
  77.  
  78. /* New fields for the Cme widget record */
  79. typedef struct {
  80.     /* resources */
  81.     XtCallbackList callbacks;    /* The callback list */
  82.  
  83. } CmePart;
  84.  
  85. /****************************************************************
  86.  *
  87.  * Full instance record declaration
  88.  *
  89.  ****************************************************************/
  90.  
  91. typedef struct _CmeRec {
  92.   ObjectPart     object;
  93.   RectObjPart    rectangle;
  94.   CmePart     cme;
  95. } CmeRec;
  96.  
  97. /************************************************************
  98.  *
  99.  * Private declarations.
  100.  *
  101.  ************************************************************/
  102.  
  103. typedef void (*_XawEntryVoidFunc)();
  104.  
  105. #define XtInheritHighlight   ((_XawEntryVoidFunc) _XtInherit)
  106. #define XtInheritUnhighlight XtInheritHighlight
  107. #define XtInheritNotify      XtInheritHighlight
  108.  
  109. #endif /* _XawCmeP_h */
  110.